package com.whw.fy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.whw.fy.config.IgnoreSwaggerParameter;import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Transient;

@ApiModel(value = "com-whw-fy-entity-Schedule")
@Data
public class Schedule {
    /**
     * 排课id
     */
    @ApiModelProperty(value = "排课id")
    private Integer scheduleId;

    /**
     * 排课人员id
     */
    @ApiModelProperty(value = "排课人员id")
    private Integer scheduleStaffId;

    /**
     * 授课老师id
     */
    @ApiModelProperty(value = "授课老师id")
    private Integer teacherId;

    /**
     * 班级id
     */
    @ApiModelProperty(value = "班级id")
    private Integer classId;

    /**
     * 第几节开始的课
     */
    @ApiModelProperty(value = "第几节开始的课")
    private Integer timeSkcd;

    /**
     * 上课占几节段
     */
    @ApiModelProperty(value = "上课占几节段")
    private Integer timeSkjc;

    /**
     * 使用房间id
     */
    @ApiModelProperty(value = "使用房间id")
    private Integer roomId;

    /**
     * 排课显示颜色
     */
    @ApiModelProperty(value = "排课显示颜色")
    private String scheduleColor;

    /**
     * 字体颜色
     */
    @ApiModelProperty(value = "字体颜色")
    private String fontColor;

    /**
     * 上课日期
     */
    @ApiModelProperty(value = "上课日期")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date timeDay;

    /**
     * 周几 例：“周日”就是7
     */
    @ApiModelProperty(value = "周几 例：“周日”就是7")
    private Integer weekName;

    /**
     * 排课状态 0：未上课 1：已上课
     */
    @ApiModelProperty(value = "排课状态 0：未上课 1：已上课")
    private Integer scheduleStatus;

    /**
     * 上课次数
     */
    @ApiModelProperty(value = "上课次数")
    private Integer scheduleCompletionTimes;

    /**
     * 是否加班 0：正常 1：加班
     */
    @ApiModelProperty(value = "是否加班 0：正常 1：加班")
    private Integer scheduleWorkOvertime;


    @ApiModelProperty(value = "上课日期（传这个）")
    @Transient
    private String timeDaytoString;
    @Transient
    @IgnoreSwaggerParameter
    private Staff staff;
    @Transient
    @IgnoreSwaggerParameter
    private Clazz clazz;
    @Transient
    @IgnoreSwaggerParameter
    private Room room;
}